package com.ruoyi.job.task;

import com.ruoyi.teacher.api.RemoteTeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("teacherServiceTask")
public class RyTeacherAttendanceSynchronizationTask {
    @Autowired
    private RemoteTeacherService remoteTeacherService;

    /**
     * 工作通知
     */
    public void workNotification() {
        System.out.println("任务通知");
        remoteTeacherService.workNotification();
        System.out.println("任务通知完成");
    }

    /**
     * 同步考勤
     */
    public void attendanceSynchronization() {
        System.out.println("同步钉钉考勤数据");
        remoteTeacherService.attendanceSynchronization();
        System.out.println("同步钉钉考勤数据完成");
    }

    /**
     * 打卡提醒
     */
    public void punchReminder() {
        System.out.println("打卡提醒");
        remoteTeacherService.punchReminder();
        System.out.println("打卡提醒完成");
    }

    /**
     * 定时统计异常
     */
    public void abnormalTimingStatistics() {
        System.out.println("异常考勤统计");
        remoteTeacherService.abnormalTimingStatistics();
        System.out.println("异常考勤统计完成");
    }

    /**
     * 时间通知教师报告
     */
    public void timeNoticeTeacherReport() {
        System.out.println("定时通知老师日报");
        remoteTeacherService.timeNoticeTeacherReport();
        System.out.println("定时通知老师日报完成");
    }
}
